package com.pos.clothes.util;

public class ValidFlag {
    public static String getValidFlag(int idcategory){
        int v = 0 ;
        for(int i = 0 ;i < 4;i++){
            v += Math.random()*Math.pow(10,i);
        }
        String s = String.valueOf((int) (v + idcategory * Math.pow(10,4)));
        if(s.length()<6){
            s = "0".concat(s);
        }
        return s;
    }
}